<template>
  <div>
    大儿子组件  弟媳: {{dixi}}
    <p>
      <input type="text" v-model="wife" /><button @click="send">发布</button>
    </p>
  </div>
</template>

<script>
export default {
  data() {
    return {
      wife: '',
      dixi: ''
    }
  },
  created(){
      this.bus.$on('send2', (val)=>{
          this.dixi = val
      })
  },
  methods: {
    //   发布事件并且将参数携带
    send() {
      this.bus.$emit('send', this.wife)
    }
  }
}
</script>

<style></style>
